package com.qq2008.game.stzb.jdo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

// 地图
public class Room {

    // 编号
    private int id = 0;

    // 名称
    private String name = "";

    // 地图描述
    private String des = "";

    // 出口-北
    @JsonIgnore
    private Room north = null;

    // 出口-东
    @JsonIgnore
    private Room east = null;

    // 出口-南
    @JsonIgnore
    private Room south = null;

    // 出口-西
    @JsonIgnore
    private Room west = null;

    // NPC列表
    private Map<Integer, Monster> npcMap = new HashMap<>();

    // 玩家列表
    private Map<Integer, Monster> roleMap = new HashMap<>();


    public Room() {
    }

    public Room(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Room getNorth() {
        return north;
    }

    public void setNorth(Room north) {
        this.north = north;
    }

    public Room getEast() {
        return east;
    }

    public void setEast(Room east) {
        this.east = east;
    }

    public Room getSouth() {
        return south;
    }

    public void setSouth(Room south) {
        this.south = south;
    }

    public Room getWest() {
        return west;
    }

    public void setWest(Room west) {
        this.west = west;
    }

    public Map<Integer, Monster> getNpcMap() {
        return npcMap;
    }

    public void setNpcMap(Map<Integer, Monster> npcMap) {
        this.npcMap = npcMap;
    }

    public Map<Integer, Monster> getRoleMap() {
        return roleMap;
    }

    public void setRoleMap(Map<Integer, Monster> roleMap) {
        this.roleMap = roleMap;
    }

}
